﻿using System;
using System.Collections;
using System.Collections.Generic;

using AUV5.Model;

namespace AUV5.DAL.Interface
{
	/// <summary>
	/// 功能：     ExtraService 的业务接口，定义业务功能
	/// 作者：     LI
 	/// 日期：     12/11/2011
 	/// 修改日期： 
 	/// 修改人：
 	/// 修改内容：
	/// </summary>
	public interface IExtraServiceDao
	{
		/// <summary>
		/// 得到最大行数
		/// </summary>
		/// <returns></returns>
		int GetMaxCounts();
		
		/// <summary>
		/// 得到列表
		/// </summary>
		/// <returns></returns>
		System.Collections.Generic.IList<ExtraService> GetList();
		
		/// <summary>
		/// 通过不同参数得到列表
		/// </summary>
		/// <param name="objParameters"></param>
		/// <returns></returns>
		System.Collections.Generic.IList<ExtraService> GetListByParameters(object objParameters);
		
		/// <summary>
		/// 得到明细
		/// </summary>
		/// <param name="ExtraID"></param>
		/// <returns></returns>
		ExtraService GetDetail(System.String extraid);

		/// <summary>
		/// 新建
		/// </summary>
		object Add(ExtraService extraservice);
		
		/// <summary>
		/// 修改
		/// </summary>
		int Update(ExtraService extraservice);

		/// <summary>
		/// 删除
		/// </summary>
		/// <param name="ExtraID"></param>
		int Delete(System.String extraid);

		/// <summary>
		/// 删除
		/// </summary>
		/// <param name="extraservice"></param>
		int Delete(ExtraService extraservice);
        /// <summary>
        /// 判断一条服务是否已经存在
        /// </summary>
        /// <param name="service"></param>
        /// <returns></returns>
        bool isExists(ExtraService service);
    }
}
